package com.woniuxy.service;

import com.woniuxy.dto.ResultChangeServer;
import com.woniuxy.dto.ResultServerDetail;
import com.woniuxy.exception.ErrorException;
import com.woniuxy.pojo.ServerMenu;
import com.woniuxy.pojo.ServerSubscribe;
import com.woniuxy.pojo.Servers;

import java.util.Date;
import java.util.List;

public interface ServerService {


    List<ServerMenu> findMenu();

    List<ServerMenu> findHotServer();

    List<Servers> findById(Long serverMenuId);


    List<ResultChangeServer> findServersByMenuId(Long serverMenuId);

    ResultServerDetail findProviderByMidAndTypeId (Long mid, Integer typeId,Long id) throws ErrorException;

    void insertServerSubscribe(ServerSubscribe serverSubscribe);
}
